package com.yupi.tangoj.model.enums;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

public enum QuestionSubmitStatusEnum {
    WAITING("等待中",0),
    RUNNING("判题中",1),
    SUCCESS("成功",2),
    FAILED("失败",3);

    private final String text;

    private final Integer value;


    QuestionSubmitStatusEnum(String text, Integer value) {
        this.text = text;
        this.value = value;
    }

    public String getText() {
        return text;
    }

    public Integer getValue() {
        return value;
    }


}
